CLAP. I. Resolving miscalibration for deep learning-based galaxy photometric redshift estimation