Dryer shutting after a few loads
And then takes a while to restart is a main motor overheating, this is usually caused by a combination of lint built up around the motor and a clogged or badly restricted airflow through the dryer and vent system, in any case it is easy to fix, great machines.