Model independent analysis of MeV scale dark matter: Cosmological constraints