This worked for me! My MS apps also stopped working last week because Company Portal said my "Device Health" wasn't compatible with the security settings.
TL;DR: You need to (temporarily) turn on Device Admin and Exploit Protection Compatibility Mode for Company Portal before logging in or installing the other MS apps.
https://discuss.grapheneos.org/d/1841-ms-intune-company-portal-with-work-profile-not-working/54