Instead of using 100% for both width and height of the pattern, set the dimensions to match the viewBox or path size that you're working with.
Use preserveAspectRatio="none": This will ensure that the image scales to fit the entire pattern area without maintaining its aspect ratio, preventing overflow.