To keep your Mac from overheating you need to follow these tips-
1. Quit resource-intensive apps.
2. Clean dust from fans and vents.
3. Use a cooling pad.
4. Update macOS.
5. Limit background apps and processes.
6. Optimize battery settings
7. Check for viruses and malware.
8. Declutter your desktop.