Searching for heavy photons in the HPS experiment