SMS/Phone 2FA: This issue may occur if the SMS code is delivered late and has already expired. Most of the time late deliveries are resolved by SMS/Phone providers in a matter of hours. If the issue persists please contact support via chat.
Google Authenticator: Invalid tokens are caused by incorrect device clock settings. Your clock must show the correct local time, date, and time zone to work properly. Android and Windows phones have an option to correct for time errors inside the Authenticator app properties if you do not wish to sync your clock. iPhones must be set to use internet time to make sure the clock is synced properly.