My top exhibited the same behavior and it ended up being the DC motor on the hydraulic pump. I had the same flashing lights as well. I dug out the pump and motor and sure enough, it was rusted solid. I ordered a replacement motor from amazon and swapped it out for the rust bucket. I also relocated the assembly into the trunk. All I need to do is get a nice clap to bolt it in place and make a panel to hide it from view. The top works well now. I think the motor was like $50. I did have to top off the fluid after replacing the DC motor as some will leak out. Go slowly when removing the motor as there is a spring in there that you do not want to lose.
This is the one I used.
https://a.co/d/09X2z5N8
The only advantage I had was that my rear window delaminated from the top and was the reason it was in my garage in the first place. So I just reached through that opening to get the pump and motor out of the pocket. Right now I am resealing the frame and window back in the top. Its been a week of fun for sure.