The system will throw an error or the booking will just go on but only two tickets will carry on under senior citizen quota and rest under normal?
I assume a better option might be for 5 senior persons then is to force lower berths checkbox and only allow booking if preferred berths are allotted.