Hi there,
Make sure it is not a FAT32 partition. You cannot copy install.wim to a FAT32 partition, because FAT32 partitions do not allow files larger than 4 GB and the install.wim file is larger than 4 GB.
It's possible that, because the install.wim is so large, your filesystem can't handle the size of the file. Again, a re-format with the appropriate block size may help you out.
Here is a thread as well which discusses the same issue and you can try out some troubleshooting steps from this and see if that helps you to sort the Issue.
Install.wim installed on boot USB but is not working in windows 10 set up
https://answers.microsoft.com/en-us/windows/forum/all/installwim-installed-on-boot-usb-but-is-not/b3af9570-68d5-48d2-9c83-e9120dec2f47
Add and Remove Drivers to an offline Windows Image
https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-and-remove-drivers-to-an-offline-windows-image?view=windows-11
--------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer--