I don't have the memory issue, but do have a bit of C-interop code. I don't have a ton of it but more than many projects due to handling media and network data through kotlin and using native functions to process some of it. I do occasionally get all interop functions showing up as red and often types resyncing gradle and using File -> Reload all from disk helps