Check monitoring separately from the overlay
Open the MSI Afterburner monitoring window. If the temperature and usage graphs update, the app is collecting data. MSI uses a separate component, RivaTuner Statistics Server (RTSS), to show that data in games. Under Monitoring, select a metric and enable its on-screen display. Test it in another game.
If it only happens in CS2
Trusted Mode is on by default and restricts how third-party software can interact with the game process. If RTSS works elsewhere but its overlay is missing in CS2, that is consistent with this restriction. Use CS2's built-in telemetry for frame time and FPS. For temperature or utilization, use Afterburner's graphs and check them after the run.
If the overlay fails in every game
Check that RTSS is running and at least one Afterburner metric is enabled for the OSD. Change one setting at a time so you can tell what fixed it. If the graphs inside Afterburner are also blank, set up monitoring first and then test the overlay again.