pet_scop_align_params: improve error handling