What to do if my samsung tab keeps on resetting itself?
It might be some hardware issue
try changing the hardware buttons to software buttons or interchanging the buttons for power and volume

this might help