It depends on the reason behind the broken attachment. Was the file/folder deleted, or was a folder was disconnected from Team Files by a user?
...
The file/folder was deleted
If the attachment was deleted on from the original storage, only restoring the file/folder on the storage can recover it.
In case If the file/folder was deleted by mistake, open your storage site and restore it. After that, the file/folder will be available in Team Files again.
...
When a user disconnects a folder from Team Files, all attachments from that folder will appear as broken in your pages and issues.
...
You can check the “Connected folder logs” to see what happened.
In Jira, : open the Project settings > Apps > Team Files > Connected folder logs.
In Confluence, : open the Space settings > App links > Team Files settings > Connected folder logs.
The logs show when a folder was changed and who did it.
...
Can I revert it?
If the folder was disconnected by mistake, it’s now possible to reconnect it in the first 30 days.
...
To recover a disconnect folder:
Open the file manager from the sidebar
Click “Connect folder”folder.”
Open the place that contains the folder you need
Click the checkmark of the folder and click connect
...