Variation in the Stellar Initial Mass Function from the Chromospheric Activity of M Dwarfs in Early-type Galaxies