Preheat the oven to 350°F and line the bottom and sides of a 9-inch springform pan with parchment paper.
Place the pistachios and 1/4 cup of the almond flour in a food processor and pulse until finely ground. Stop as soon as it looks like coarse flour so it does not turn into a paste.
Transfer to a bowl and whisk in the remaining almond flour, coconut flour, baking powder and salt. In a large bowl, whisk the eggs and granulated sweetener for 2 minutes until pale and slightly thickened. Slowly stream in the olive oil while whisking, then whisk in the sour cream, lemon zest, lemon juice, vanilla and almond extract.
Fold the dry ingredients into the wet mixture until smooth. Pour the batter into the pan and bake for 35 to 40 minutes, until golden and a toothpick inserted in the center comes out clean.
Cool the cake in the pan for 15 minutes, then release the sides and let it cool completely on a rack.
In a bowl, beat the mascarpone, heavy cream, powdered sweetener and vanilla for 1 to 2 minutes, just until soft, billowy peaks form. Do not overbeat or the mascarpone can turn grainy.
Spoon the whipped mascarpone over the cooled cake in loose swoops and sprinkle with the chopped pistachios before slicing.