Stock flipping from compliant to non-compliant back to compliant

As-salamu Alaykum Wa Rahmaa Tu’lahi Wa Brakatu,

I have a stock Gingko Bioworks NSYE:DNA which I plan/planned to hold long term.

I am currently at a heavy loss which I expected but recently it’s shari’ah status became non-compliant.

I am not planning to sell my stock as the loss is high, however, I expect the stock to generate profit in the near term.

During this period of loss of the stock does become halal again, is there any purification process?

To summarise:

  1. bought the stock when halal
  2. stock loss value
  3. stock became haram
  4. waiting to recuperate loss to get at least break even before selling

If the stock becomes halal again, what should I do?

Haram status reason: interest profit is 13.43%.

Jazakhalla khairan.