This could be a component (even the head) that heats up over time.
Even a cable with a connection issue.
Unfortunately if it is a component on a board, it could be very difficult to track down.
Keep a log and see if you can make it happen on purpose.
See what it takes to make it happen and...