Clipboard text changes when copying a URL in my web application

I’m experiencing a problem where the text being copied to the clipboard changes to an unrelated string of characters.
For example,
when trying to copy the URL

https://colab.research.google.com/drive/1THWrBH-mpvQKteFDz3d8gWcGn7EZI0Pu

to the clipboard, the following string is copied instead:

U7ON2T3WH57MMMMARVQHT5IOLB7ZDXOHFXAUEB3CQRDA66KLDUX3RXPE5E.

The issue occurs on both desktop.
I have tested in Chrome, Firefox, and Safari with the same result.
The URL being copied is incorrectly displayed in the input field.