Oven turns off, then resets in middle of cooking

The oven will start fine, but will completely shut down while baking. After a few minutes the oven power comes back on with flashing time. No error codes or warnings. It seems to only happen when using the heating element, not the broiler. There seems to be no pattern to the shut off, it can happen 3 times in the baking process or 1 time. It does happen all but a few times we use the oven.

Any ideas on a fix, or replacement part?