I have installed Ubuntu on an external drive and when I am using it for a while it stops working and appears as seen in the image. Is there any way to solve it?

I have installed Ubuntu on an external drive and when I am using it for a while it stops working and appears as seen in the image. Is there any way to solve it?
