Check for sequence overflow.

## Overview

This pull request adds a check that incrementing the next sequence won't overflow integers on the system and cause a panic. Instead a `ErrSequenceOverflow` error is returned.