This reminds of the infamous GPU issues of the unibody models (the last non-retina ones). I have one such 2012 15" MBP which has a dedicated GPU which, as I understand it, has developed soldering issues.
Non-Mac OSs don't know how to turn this GPU on out of the box, so it just sits there without bothering anybody. But, for some reason, MacOS turns it on and it craps the bed, rendering the machine unusable.
I had the 2010 version of this model, with the same symptoms starting in mid 2011. I would get 5-8 crashes a day from the GPU being on the fritz.
Apple ended up replacing the mainboard in a free out-of-AppleCare repair. I never had the problem again and I used the machine regularly until about 2018.