Managed to fix it thanks to @GRisk's help. Despite the path not having any special characters, the DAIN folder was somewhere where its own path had. Moved it somewhere else and it worked.