I had a brand new 250 Yamaha on a new 620 do something simular.
My 1st maiden voyage after going trough a full day on St. Croix river breaking in properly was up to Mille lacs.
I got to my 1st destination, about 10 miles out from Hunters point when I lost all power to main motor.
I also lost tilt and trim. I was on phone with dealership a few times. They didn’t know what to say other than we’ll make this right. After evaluating my situation, it was apparent I would have to limp in (10+ miles in some wind) back with 9.9 kicker. Dealer told me to call them when I got close to landing and if still no luck, they would send help being as I had no idea how to get onto trailer with main motor down.
All the sudden, I got power, at least long enough to raise motor, then it was gone again.
At least I could put on trailer. Took back to deal.
They checked everything. Nothing, put different brass nylon locking nuts on all battery connections and I left.
Next trip to St. Croix… whala, exact same thing.
This time they had a guy waiting at Hudson ramp to bring my boat back.
They and I were stunnded.
It ended up being a loose conection inside couling at main motor power. They had checked every damn thing but that 1st time around.
It has worked flawlessly since… and they gave me a $250.00 gift card for my troubles.
Sorry, long story, but may want to check that.
Good luck.