Text this: Topologically influenced terahertz emission in Co2MnGa with a large anomalous Hall effect