You can use Open Core Legacy Patcher to resolve this issue.
- Go to the Open Core Legacy Patcher website to download the latest version of the Open Core Legacy Patcher zip file. Then unzip the downloaded file and drag Open Core Legacy Patcher to your Applications folder.
- Open Open Core Legacy Patcher. Before making any changes, it’s recommended to back up your data and important files to prevent data loss.
- Once you open Open Core Legacy Patcher, select the macOS version you are currently running.
- Follow the instructions to select the Post Install Root Patch, then run the patch to ensure all necessary fixes and updates are applied.
- After completing the patch, restart your Mac. Now open your Photos app, and the Library icon should be here.