Hi,
System has that basic control on release orders of a contract as a warning message, you have to refer corresponding contract along with the respective line item to your release order then only system can have the control over the release order.
Already you made the required messages as error, system will surely trigger error and will not allow more than the referred contract value.
R,
Amala