OP is filing the I-90. The window opens 6 months before it expires: https://www.uscis.gov/i-90 "(F ) My card will expire within six months or has already expired."
"If you file your form online, the system will guide you through the process of paying your fees with a credit, debit, or pre-paid card. Bank account withdrawals are also available when paying online. Once you are ready to submit your form, the system will automatically direct you to the secure Department of Treasury site, pay.gov, to pay your fees online. We only use pay.gov to process fees. Always check the website address before you pay. Beware of scam websites and scammers who may pretend to be a USCIS website."