Chosen Solution

After the screen replacement it randomly shuts off and restarts. i have tried the battery and a charging port as well as a factory reset and it is still shutting off frequently. is there anything else i could replace that will fix this issue?

Is it possible you might have damaged the NFC antenna? Might try leaving the rear cover and NFC antenna off the phone to see if it becomes more stable.