Better exception when performance counter instance name limit is reached

Fixes #2352
The only thing is that we are now throwing here, while before we were swallowing all exceptions!