A vector on -45° or other angle, can't perfectly match

What should I do?

If you have “Snap to pixel grid” enabled the shapes outline(blue box) will snap to the grid.

image

You could try to disable the snap or flatten the object, depending on what you want to achieve