Baking Maps onto a Plane Problem

I’m trying to bake a high poly branch into a plane. I’m getting these weird artifacts around the edges of the mesh. Why am I getting this? Are there any ways to fix this?

I found a solution to my problem. I set the Margin to 0 px. Blender generates additional pixels for seamless bakes which I didn’t need.