The user @Aboto Chen suggested it could be because of the translate values not returning integers. Using the css's round function seems to have fixed the issue for me.
transform: translateX(round(to-zero, -50%, 1px)) translateY(round(to-zero, -50%, 1px))