The part land patterns in your CAD package parts library should all come with a valid keep-out area defined. That’s the theory anyway. However, theory and practice don’t always match up so well. I’ve written a lot about such things as verifying that the actual footprint matches the physical part. That’s important. But it’s not all that’s important.
Sometimes the footprint will match up just fine, but the body of the part won’t. This might be because you’re using a different variant of the same part or perhaps a different part altogether that just happens to have the same footprint.
It’s common practice to modify an existing library component for a new part, but if you do that, make sure you consider the physical dimensions of the part body too. Sometimes you can get away with the keep-out area being different, but as shown in this image, not always.