This can happen in some low dose or high ambient light situations.
Check your x-ray generator to make sure it has a good battery and is putting out the dose you expect.
If you are capturing low-dose images, try scanning them using Low Dose mode in the scanner settings.
Newer versions of XTK include a feature to reduce or remove these borders, you may also try updating XTK to see if that helps.