Sounds like you have a virus or malware. Windows 7 does not simply expire that way unless you used an invalid license key/serial when installing windows 7.
I recommend installing malwarebytes antimalware and doing a full system scan.
Use another computer and download it on a flash drive if you have to. run windows in safe mode if you cant install it in standard mode.