There are several things you can do to prevent your transmission from overheating:
Check the gearbox oil level
The first thing you should do to prevent your transmission from overheating is to check the transmission oil level using the transmission dipstick. Make sure the fluid is at the correct level and not too low. If there is not enough transmission oil, add more oil to bring it to the correct level.
If you are not sure how to check the transmission oil level, refer to your vehicle's manual or take it to a mechanic. There are different types of gear oils and not all of them are the same. It is important to use the correct type of oil in your car's transmission.Change the gearbox oil repeatedly
Make sure the transmission oil is changed when needed. The recommended replacement interval for most transmissions is every 30,000 miles. However, if you drive a high-performance vehicle or if you tow, it may require more frequent oil changes.
Add the gearbox cooling system
Gearbox cooler is a device that helps keep your gearbox cool by lowering the oil temperature. When installed between the radiator and the transmission, it can help significantly reduce the overall operating temperature of your transmission and prevent the transmission from overheating.

4- Drive wisely
How you drive your car has a significant impact on the temperature of your transmission. Driving at high speeds or in stop-and-go traffic can cause the transmission fluid to overheat. Try to drive properly to minimize the stress on the transmission and you may be able to avoid this problem.

Avoid overloading heavy loads
If possible, avoid towing or driving in heavy traffic. This type of driving can cause the gearbox to overheat. Keep an eye on the amp and make sure the transmission oil is properly cooled. If the temperature starts to rise, pull the car over and let it cool down before continuing.
Result
It is important to avoid overheating the gearbox as it can lead to gearbox failure and gearbox repair is a costly affair. An overheated transmission can be caused by a number of factors, including a lack of transmission oil, excessive use of the vehicle, or an improper cooling system. Take it to a mechanic. Continuing to drive an overheated transmission can cause extensive damage and may even lead to complete failure. Prevention is the best cure, so keep your car's transmission cool by using the right amount of oil and avoiding overuse.