Chosen Solution
I cleaned my fan and heat sink as my PS4 kept overheating so I cleaned it out which I normally do every couple months after I get the overheating warning. This time I did it and it overheated in under 5 mins of playing and idk what i should to prevent this
I would try and replace the thermal paste. The original is probably old and does not transfer heat nearly as well as it should. This should help: PlayStation 4 Thermal Paste Replacement