I have successfully fixed the sitemap module issue. The issue was caused by a glitch when clicking the collapse button. After extensive testing and reading the Balkan org chat documentation, I was able to determine that the solution was to make a custom template as the current template was the one causing the glitch. I tested this out and updated the preprod environment, which successfully fixed the issue.