Exotic pairing state in quasicrystalline superconductors under a magnetic field