[buffer] Add some buffer op accounting to a few methods (#5522) Should fix a fuzzer-found issue, now that we have increased most buffer limits.