Hello,
Thank You for choosing Just Answer for your query. Yes, I can help you.
Yes, it is possible that the two are related. If the repair center was retrieving compressor overheat codes, this could indicate that the compressor was being run excessively due to running more than it should because of leak in the system (Right front shock).
The leaking shock "may" have been the cause of the failed compressor, but at this point in time it is impossible to know from one half way around the world over the internet.
The front strut (shock) retails for about $850 US and requires about two hours labor to replace.
I hope that I have answered your questions and addressed your concerns. Should you have any further questions for me, please do not hesitate to ask. I want you to be 100% satisfied with my answer.
Positive feedback and bonuses are always appreciated! If you accept my answer please click on the "ACCEPT" button by THIS answer.
Thank You!
Jake "The BMW Doctor"
BMW Technician
Over 30 years experience, 13 years with BMW, former BMW Shop Foreman, Service Manager