API Update Required - all scripts and references are destroyed

I work with Rider, every roughly 5 hours, when I write a some code and switch back to unity, this window is presented for some unknown reason:

6069000--657708--upload_2020-7-8_21-44-23.png

Anything I do, whether upgrade or cancel it, entire project breaks, all the references are gone, scripts are “missing” in all prefabs and scriptable objects.

Only thing I can do is to delete library and let the project re-import anew (which takes a LONG time).

I run super duper “stable” unity version of 2019.4.1f1.
Unity editor log: [LicensingClient] ERROR Failed to connect to local IPC[Licensing::Module] Fail - Pastebin.com

Console:

Missing references everywhere:
6069000--658170--upload_2020-7-9_10-23-36.png

Maybe somebody knows how to avoid this all together?

Bump