It is highly unlikely for a dryer to stop and open by itself due to having too much inside. Dryers are designed with safety features that prevent them from opening while in operation. If you overload a dryer, it may affect the performance and drying efficiency, but it should not cause the dryer to stop or open automatically.
However, if you have a dryer with an advanced feature such as a load-sensing mechanism or an automatic load balancing system, it's possible that it may detect an imbalance caused by an overloaded drum and pause the cycle. In such cases, the dryer may display an error code or alert to indicate the issue. You would then need to redistribute the load and restart the dryer.
If your dryer is unexpectedly stopping and opening by itself during operation, it could be an indication of a malfunction or a specific issue with the dryer. In such cases, it's recommended to consult the dryer's user manual for troubleshooting steps or contact the manufacturer or a professional technician for assistance. They would be able to diagnose the problem and provide appropriate solutions.