Thanks! That wasn't my problem, but I appreciate the support! I actually fixed the problem. I have been using Kenney tilemaps, and the tiles are HUGE! So, I scaled them down and the bug fixed itself. I have no idea why this works, I just know that it does.
imho a memory overflow, it counts coords like if it's halved, the tilemap is bigger than 65535x65535 pixels maybe?