Thank you for playing and reporting that the game can get into an unfinishable state, which is something I didn't want.
Can you please provide me some details of how you broke the portals (by that I assume you locked yourself in a room with no way to escape), so I can fix it?
it was simple after you place the book, you can teleport using the witch. You can take the skulls, and from afar teleport using the witch making the doors closed and unable to go back. I got the 3 normal skulls to the skeleton below.