Here are your parts
Replacement parts for Frigidaire GLEFM397DBB Frigidaire/range | AppliancePartsPros.com
You may also require an overlay.
See the following for the wiring diagram.
The clock/electronic control would also be at the top of my list.
The problem is that your problem is very intermittent so you can only guess at it..