Get a wood planer, either manual or automatic (electrical). If you can temporarily remove the window you can shave off just a bit of wood to give it more space.
That’s my plan. We’re in the Uk and it’s basically rained most days this year. Will take a look once things dry out. In the meantime I’ve just been leaving the windows open for ventilation anyway.