Dryer shuts off after 10 minutes in auto

When drying clothes in “Auto Sense Dry” dryer shuts off after about 10 minutes.
When drying in “Timed Dry” the dryer works perfectly.
Can someone inform me what parts might be the cause?

Faulty timer.

Whirlpool 8299781 Timer - AppliancePartsPros.com

Eric