Hey doz77, don't know if you are still encountering the problem, but i had the same issue yesterday and found a solution for me, otherwise everyone can find here maybe a diffrent solution working for them.
It came when trying to install new chipset drivers for my b450 and then BSOD exact same message 20secs after login.
I booted win11 in safe mode with internet. I downloaded safemsi.exe* (just search on the internet), executed it and i got the message that the installer is now enabled. Last step was to go to installed programs and apps and uninstall AMD Ryzen Master. Reboot and everything was fine again.
Chipset should still be uptodate, i'll check that only when it's necessary since it took me hours to find this 4-minutes solution Amd Ryzen Master got unintentionally installed, my fault i think. But i don't need this for now and maybe never ever
safemsi.exe is a tool that creates a thing in the registry, which can also be added manually to enable the Windows Installer even in safe mode. Removing the registry line goes only manually but i'll leave it there Infos of this tool are old, but still uptodate and is working also on Win11. (Definetely a file for my troubleshooting arsenal :P)
As you can see i am not a programmer, but this took only a few minutes and the only knowledge needed is how to start win11 in safemode with networking.
So i hope this helps someone and see you on the next BSOD