I had the same problem as people are recently posting on here and the problem was down to faulty hardware. I sent it back to Yamaha via guitarguitar who I purchased it from shortly after they were first released. Since then it’s been absolutely rock solid.
I’m of the belief that a batch were made with faulty motherboards and these all need replacing as mine was.