Assalamu alaykum
Similar questions to purification of non-shariah compliant stocks have been asked, please see here for the guidance. It seems that all profits need to be purified (i.e. given away):
Ibrahim also points to a purification course on the link above. The Muftis may be able to advise further for your case.
JzkAllahkher