Problem with grace notes position after staff condensation

Can you cut down the project to just a few bars suitable to reproduce the issue, and attach it here?