This sounds like brexiteer project. Doubt this will actually happen. 3800 km of undersea HVDC cable just to circumvent the EU. 3800 km is the distance from St.Petersburg to Marocco.
I mean it probably would've been very hard to route it through Europe too. Morocco already has powerlines with Spain, but I'm not sure if it would make sense to transport that much energy through the existing grid? Especially since very high voltage powerlines are inherently more efficient, so a direct link might make sense. I'm not familiar with how the EU grid is laid out though, and the little knowledge I have is…
So the UK should get over itself, connect to larger grid that’s already operating on three sides. The same is probably true for Morocco, and at some point these photovoltaic-in-the-desert ideas will become economical, although I’m not entirely sure if we are there yet (the desert is less ideal for solar cells than one thinks, because heat isn’t linear proportional to irradiation).