Record where the error appears
Save the full error message. Note whether it appears when you open the demo or jump to a specific round. If it is still downloading, wait for it to finish. For an external replay, extract the archive and make sure you are opening the .dem file.
Compare with another replay
Open a recent demo from the same source. If it plays, download the failing replay again while it is available. Try playing it from the start without seeking. If only one seek position triggers the error, note the round and timestamp.
If every demo fails
Restart CS2 and let Steam finish any update. Verify the installed game files. If the issue persists, record the demo source, approximate match date and the action that triggers the error.