Signatures of primordial energy injection from axion strings