I tried all of the processes described in the previous comments, but I still received the error, however, I did manage to find another way to overcome the error, so i decided to post it here aswell.
I reset the iPad (After having restored it and trying to enroll it)
I prepared the iPad choosing "Manual Configuration" and only checking "Add to Apple School Manager or Apple Business Manager" (I would like the emphasize that I do NOT have "Activate and complete enrollment" checked. Why? Because it's just going to make it give the error again, so instead we are just adding to ABM)
After finishing "Prepare"...
I went to ABM and found the device in the list. I changed the mdm server from Apple Configurator to our Intune MDM server by clicking "Edit MDM Server" when the device was selected.
I went to Intune and synced the Enrollment Program Token that was already set up. I checked the list for the device.
I then proceeded with setup, and it enrolled without the error.
I came to this conclusion because I had two goals and I realized that the most necessary goal was being completed.
The goals were to add it to ABM and to enroll it in Intune.
It was adding to ABM each time I tried, so I decided to just go that far and then manually enroll it into Intune rather than use Apple Configurator to try to do it automatically.