Maybe try to take the battery out of your motherboard and reinstall it to see if that fixes the problem. I am guessing you are hitting the delete key when it boots to get into your bios or F10 I am not sure what brand of pc you have. Hope this helps in some way.
Hey there i seemed to have figured out the issue here.. Gigabyte mainboards do not like you pressing Delete multiple times it seems to restart i noticed when i pressed it 5x or less with a moment apart it boots to BIOS =S strange but i guess gigabyte has a reason to encourage people not to spam delete. Thanks for the reply anyways