Can't rename files with long filenames created outside of File Explorer in Google Shared Drives

Files with long names that were created outside of RaiDrive (Google Drive web client, rclone, etc.) can’t be renamed in File Explorer. When attempting to rename, the name gets set back to its original name after pressing Enter. I have tried creating a file whose filename was 3000 characters long in a shared drive using File Explorer, and renaming it worked fine so I’m not sure what’s wrong.