There are earlier flights EDI-LCY, BA8703 would give you a 2h35 connection time at LCY. There’s only one flight LCY-MAH, so you might want to consider the earlier domestic. The options are limited in the event of IRROPS, and also bearing in mind as mentioned above that you have to go landside and reclear security at LCY, albeit that security is quick.