Using \override Score.SpacingSpanner.strict-grace-spacing = ##t seems only useful when no grace notes are used immediately after the bar line and no accidentals are used, which seems like a function for a very limited use case
This is a known issue: https://gitlab.com/lilypond/lilypond/-/issues/2630
Best, Jean