[counters] Sample should fail if buffer size is too small