You should be able to configure message ME 161 as an error. This will prevent the second delivery quantity exceeding the remaining PO quantity plus any over delivery tolerance.
In SPRO you can do that under Materials Management --> Purchasing --> Environment Data --> Define Attributes of System Messages