@Hadi - I had success in opening the world in MCASelector and deleting the chunks that surrounded the region failing to generate, always was a village in my experience. After that, the world loaded fine once I TP'd myself away from those coords. I've yet to test if regenerating those chunks by heading back to the area causes the crash again or not.
https://www.minecraft.net/en-us/article/minecraft-1-18-pre-release-2 includes the fix to this bug,.