Hi @droftarts and @T3P3Tony,
Checked the phases. All connections are absolutely fine. No problems with the hardware there.

Attaching the config file too. Please ignore the messy arrangement of drives. I needed so many drives to drive everything in my machine.

Tested with lower numbers too. No luck. Motor is completely unloaded except the load from the gearbox. Won't be able to unload that. I have a similar motor without the gearbox. That runs perfectly with this configuration.
config.g