SP-Config Import Object Failed

Hello everyone,
I am getting 504 gateway time out response for POST/sp-config/import even after having the PAT with sp:scopes:all.
I changes the input section values and tried to import one source at a time and now getting 500 Internal Server error. What are the possible solution for these two?

Thank You in advance!

This might be a better question for the support team. There might be something specific with your environment that the support team can diagnose by looking into your logs.