Quantification of the validity of simulations based on Geant4 and FLUKA for photo-nuclear interactions in the high energy range