Why does my iPod 5 gen turn off randomly?

why does my ipod 5 gen turn of randomly

it just turned off one second it was on the next thing i know it has been turned off and when i try to turn it on like normal it doesnt turn on its the second times this has happen
Re: why does my ipod 5 gen turn of randomly

Hardware issue? Software anomaly? Try restoring the iOS... Consider a GeniusBar visit for diagnosis of a possible hardware issue.

Original thread: https://forums.imore.com/threads/why-does-my-ipod-5-gen-turn-off-randomly.318703/