Update 30.0.5 to 31.0.4 went wrong somewhere "The loading of lazy AppConfig values [..] bruteforce"

It seems similar to my problem (Help please! Upgrade crippled my nextcloud) , how do we know which are core apps, and which are not? Is there an easy way to load only core apps?