Did you check if recently you received a mail from Google with [Action required] in its title?
Here it is part of the text in that email:
"You are receiving this email because you own one or more
Firebase projects using
Google Analytics. With the release of
Google Analytics 4 properties, to keep using your Firebase projects with Google Analytics,
you must take action to accept the Google Analytics Terms of Service for the following projects
:
Any project that has not accepted the updated terms by
February 15, 2022, will lose access to Google Analytics and the corresponding data will be deleted. This will affect
Google Analytics for Firebase Integrations including:
- Integrated Firebase products
- Crashlytics
- FCM
- Remote Config
- A/B Testing
- In-App Messaging
- Google Ads Links
- AdMob Links
- BigQuery Exports
How do I accept the updated Terms of Service?
To continue using Google Analytics,
accept the updated Terms of Service by following the instructions in the Google Analytics Help Center."
In my case it sufficed to open their page and click Accept. Non changes to my code were needed.
Although the final date is not yet reached, you may have other problems on your account. Check its pages prior to investigate possible code changes.