Prep the pan. Line the bottom of a springform pan with parchment and lightly grease the sides.
If using a water bath, wrap the outside with two layers of heavy-duty foil to prevent leaks. Preheat oven to 325°F (165°C).
Make the crust. In a bowl, mix almond flour, cocoa powder, powdered sweetener, and salt. Stir in melted butter and vanilla until the mixture resembles damp sand.
Press firmly into the bottom of the pan in an even layer.
Par-bake the crust. Bake for 8–10 minutes until set and fragrant. Let it cool slightly while you make the filling.
Melt the chocolate for the lava center. In a heatproof bowl, combine chopped chocolate, heavy cream, butter, sweetener, and espresso powder if using. Microwave in 20-second bursts, stirring in between, until smooth and glossy.
Set aside to thicken slightly.
Beat the cream cheese. In a mixing bowl, beat softened cream cheese on medium speed until very smooth, about 1–2 minutes. Scrape down the bowl to avoid lumps.
Add sweetener and flavor. Beat in powdered sweetener, vanilla, and salt until fully incorporated. Mix in sour cream until smooth.
Add eggs gently. Beat in eggs one at a time on low speed just until combined.
Do not overmix; too much air can cause cracks.
Assemble the layers. Pour half of the cheesecake batter over the crust and smooth the top. Spoon the chocolate lava mixture in a wide circle in the center, leaving a 1-inch border around the edges. Top with the remaining cheesecake batter, gently spreading to cover the chocolate completely.
Choose your baking method. With water bath: Place the springform pan in a large roasting pan.
Pour hot water into the roasting pan to reach halfway up the sides. Bake 40–50 minutes, until edges are set and the center is slightly jiggly.
Without water bath: Place the pan directly on the oven rack and bake 35–45 minutes. Keep an eye out; the water bath gives a creamier texture, but you can skip it for simplicity.
Cool gradually. Turn off the oven, crack the door, and let the cheesecake rest inside for 30 minutes.
Remove and cool to room temperature, then refrigerate for at least 4 hours, preferably overnight.
Serve warm for lava effect. Slice and serve as is for a soft center, or gently warm individual slices in the microwave for 10–15 seconds to encourage the chocolate core to flow. Add whipped cream and berries if desired.