Treatment for the two bone cysts
would be surgical excision. It is better to get the procedure done.
You should tell your hip problem to your operating surgeon.
The benefit from the surgery should outweigh the risks. This can be decided upon by the treating osteosurgeon.
Hope this helps.