Preheat your oven to 350°F (175°C) and line an 8x8-inch baking pan with parchment paper, leaving an overhang for easy removal.
In a large bowl, combine almond flour, erythritol, baking powder, and salt.
Pour in melted butter and vanilla extract, and mix until a cohesive dough forms.
Reserve 3/4 cup of the dough for the topping, then press the remaining dough evenly into the bottom of the prepared pan.
Bake the crust for 10 minutes, then remove from the oven and let it cool slightly while you prepare the filling.
In a medium saucepan over medium heat, combine the berries, erythritol, and lemon juice.
Cook, stirring occasionally, until the berries release their juices.
Sprinkle arrowroot powder or xanthan gum over the berry mixture and stir well to incorporate. Cook for an additional 2-3 minutes, or until the filling has thickened.
Pour the berry filling over the pre-baked crust and spread into an even layer.
Crumble the reserved dough over the berry filling.
Return the pan to the oven and bake for 15-20 minutes, or until the topping is golden brown.
Allow the bars to cool in the pan completely before lifting out and cutting into squares.