PS4 fan is really loud, overheats a lot and shuts down by itself

Guys, I’ve got a PS4 Pro here at home that’s having all kinds of problems. I don’t know what to do anymore. I bought it already knowing it had an issue — the previous owner had told me before I bought it, but I went for it anyway. The problem is that it was heating up a lot and making a lot of noise — like, a lot of noise from the fan. After just 20 minutes of Fortnite, the fan would already start spinning at full speed. You could barely hear what was going on in the game. And that’s something I never really managed to fix completely.

When I opened it up, I saw it was really dirty. I cleaned it, bought a stand with 3 fans, and nothing — the problem is still there to this day. The console even shuts down after 1 hour of gameplay. I think it’s putting itself into safe mode.