on my way to reset the bios, i saw something weird with the pin cable that turns on my pc, it was crushed somehow and that exact thing made my pc think i was pressing the button for a long time, thats why it turns on and off in few seconds, thanks anyways !