coverage: Replace impossible coverage::Error
with assertions
#117421
Merged
coverage::Error
with assertions
#117421