Entire operating system crashing when playing games and trubble with switching which gpu apps run on

inxi -Fazy
mhwd -l -li

Regardless of how prime is set up (or working at all) you should not be launching steam with it.
You add it to the game launch options like so:

DRI_PRIME=1 %command%