Ok, if you can't update your iPhone because it doesn't have enough storage, try connecting it to your Mac and updating it that way.
Update your iPhone or iPad - Apple Support explains how to update it wirelessly, and I am assuming that is not working due to insufficient iPhone storage. So, follow one of the links in the passage:
If the update doesn't appear on your device, use your computer to update your device manually. Learn how to update your device manually if you're using a Mac with macOS Catalina or later, or if you're using a Mac with macOS Mojave or earlier or a Windows PC.
If you still experience trouble, please write back. For whatever reason your question appeared in the MacBook Community. If you suspect the problem is insufficient space on the iPhone and has nothing to do with a Mac, I can ask the site Hosts to relocate it to the iPhone Community.