In the software update in the settings if I open the software update, which is showing that could not update because I accidentally turned off the beta updates and it is showing error or something
Software update issue in iPhone 15 Pro Max
"It is showing error or something"
How about you tell us the exact error it's showing? We can't really help you without that crucial bit of information.
Anyway, can't you just turn beta updates back on?