Does the macOS installer use GPU?
Is your Mac a dual-gpu model? I've seen cases where the descrete GPU goes bad and causes crashes, but if you disable it and go integrated GPU only, it will function normally. Worth a shot.