Schengen visa refusal with an alert and chance of getting uk visa

My application for schengen visa was rejected twice, first time in the French embassy in March 2019 on the basis “the information regarding the justification for the purpose of intended stay was not reliable”.

Second time in the Greeck embassy in July 2019, but that time an alert was issued. I couldn’t understand why and contacted a lawyer who said that it will cost me thousands of euro and my purpose of removing the alert may not be achieved so I let it go.

Now I have a medical exam in UK and I am extremly worried that this alert may affect my chances of securing a UK visa. What can I do? Does this alert affect UK visa? AND how can I lift this alert?