Implement payload max bytes check.