Burner turns off after few seconds

Brand: Whirlpool
Model Number: WFE51S0EW0
Main Symptom: The burner turns on but goes off in few seconds
What happens & when: The burner was not turning on, hence I replaced the element switch & now the burner turns on, but after few seconds it loses heat & turns off, if I turn the switch to 50 % it on’s for few seconds & turns off, when I increase the switch again to 100% it turns on, but turns of again after few seconds, what could be the issue ?

it is faulty switch or the something else ?? pls respond

Error Code (if any):
Parts or tests already tried:
Photos / video link:

Which burner is this happening with and what part number was used for the replacement? Also, just to verify, is the model number WFE515S0EW0?