As above, X ray machines draw substantial short term currents, this results in voltage drop in the service entrance conductors, feeders, transformers, and in extreme cases even in the POCO system.
Upsizing the service conductors and any feeders should help.
Cheaper options include, if the X ray machine is on the same feeder as the lighting, can either the X ray machine or the lighting be transfered to a different feeder, thereby avoiding drop in the feeder affecting lights.
If the service is three phase 240 volt, can the lighting and the X ray machine be put on different phases.
If the service is 277/480 volt with a customer owned transformer for 240 volts, is the X ray machine also listed for 277 volt, in which case connecting it thus will elimate drop in the transformer.
Electronic lighting ballasts are more tolerant of voltage dips and might be worth it.