Feel the back of the metal panels on the dryer . Do they feel hot? They should feel warm but not hot when dryer has been running.
Open up the lint exhaust and check to see if it’s blocked by lint or debris.
Your dryers may be overheating whether they are new or old.
All dryers shut off automatically when they overheat.
Lint and debris can block the exhaust unknowingly.