Although i am not sure, but there could be the following outcomes of your situation :
1) The NDVO can return all passports saying that all 3 passports have to be of more than 6 months validity, and they can give you time to apply again with new passport.
2) They can go ahead and issue the VISA...