After discussing this issue with Esri Inc, I was informed that the issue seems to be in the backend of ArcGIS online on Esri side. If you are getting this error, please contact your local technical support, they will be able to submit a request to Esri inc to have this issue resolved. Sorry for any inconvenience.