Here is the solution that worked for me after debugging the code:
1. Open this file: wp-admin/js/post.min.js
2. Format the code of that file using a service like this: https://www.formatjavascript.com/
3. Find l = n.split(“-“); In my case it was line 250.
4. Replace
l = n.split("-");
l.shift();
i = l.join("-");
k = i + "_tab";
with
if (n) {
l = n.split("-");
l.shift();
i = l.join("-");
k = i + "_tab";
}
5. Go to the admin and refresh. Problem should be solved now.