Your issue sounds similar to Please help - random shutdowns when playing/recording video and screen artifacts
There are several suggested fixes in that thread:
-
endisable any blue light filters - enable GPU acceleration
- enable OpenGL
- starting the phone in safe mode (if the issue doesn’t persist in safe mode, a factory reset may be in order Ed.: oops, you’ve already tried this)
Worth a try!