It is possible to distance an accidental from the note head by setting suitably the right-padding property of AccidentalPlacement.
right-padding
AccidentalPlacement