pv: safety check for PAI header parsed structure

- reported by Igor Potjevlesch

(cherry picked from commit e633ca6b7e748a77825d3208e86bf9bce18944a5)