I had the same problem earlier today, on my iPad. It’s an old issue, isn’t it.
I solved it by the following -
Settings
Tap my name (Apple ID, iCloud, etc.) at top left
3 Tap iCloud in list on right
4 Scroll down to iCloud Drive
5 Tap the green ‘toggle’ button, far right, to switch off iCloud’s use of iCloud Drive
At that point, a message opened saying that if I continued, data waiting to be uploaded to iCloud Drive could be lost if I continued to ‘disconnect’ iCloud Drive. There was an option to continue or cancel. 6. Hit CANCEL
I then went back to the app space on iCloud where I had tried to create a folder and upload a file, but which were ‘waiting’ and hung up. Immediately, the upload completed and was available across all my devices.
Good Luck!
Hold on to your sanity!