Brick Texture gets blurred when baked

Hi everyone.

I’m working on a HUGE! building. I created a brick texture using the Brick Texture node in blender, because I can’t find a texture similar to what I need, so I made it myself.

The problem is that, when I bake the texture it gets blurred in certain spots like this:

As you can see it’s blurred in the center and this pattern repeats along the entire texture, so I end up with blurred spots all over my wall.

Is there a solution for this?, does the “Margin” setting have something to do with it?. This only happens with my custom texture, made with nodes, the rest of my textures get baked perfectly, since they are typical textures.

Thank you.