It’s likely the motor. That start up sequence you describe is the self-test occurring. Something is causing it to fail the self test and it’s shutting down. If you’ve eliminated the obvious issues, stuck impeller, clean filter basket, tracks in good shape, etc., then it’s got to go to a repair shop so they can run a diagnostic on it to see what the error codes are.
Most commonly it’s a bad motor and a new one will cost you north of $300.