I got the firmware from Ipsw.me.Where did you get the firmware? Are you restoring it while connected to iTunes on a windows PC or Finder on a Mac?
I got the firmware from Ipsw.me.
And I use Mac to update it
How do I change this now ? Because even my model is identified as 12pro max?That explains it. You used a version meant for the iPhone 12pro max. Letting the update and restore proceed through iTunes or on the iPhone itself as J. A. Suggests would avoid the problem of incompatible firmware being used.