Don't know how, but this worked for me:
Right click on the error -> Show in Finder -> Delete AssetsLibrary -> Build and Run successfully on device running iOS 26