Presumably you have the problem whether on battery or with the mains lead plugged in?
It sounds like a failing hard drive. Make sure any important files are backed up to separate media and consider having the drive replaced.
Galaxy Note 8 vs iPhone X
Awful clip art from 1994 is being tweeted every hour by a bot
iPhone X vs Samsung Galaxy Note 8
Les meilleurs navigateurs internet 2017