Renaming & deleting a deck

When I try to rename a deck an error comes up with this:
“String indices must be integers”

And when I try to delete it instead it comes up with this:
1646125795819’ has type <class ‘str’>, but expected one of:(<class ‘int’>,)

Please help me fix the problem asap!!