Preheat your oven to 350°F (175°C). Line a 12-cup muffin tin with paper liners or grease lightly with coconut oil.
In a large mixing bowl, whisk together the almond flour, cocoa powder, erythritol, coconut flour, baking powder, baking soda, and salt until no lumps remain.
In a separate bowl, whisk the eggs, coconut milk, melted coconut oil, and vanilla until smooth and combined.
Pour the wet ingredients into the dry ingredients.
Stir gently with a spatula until just combined. Do not overmix. The batter will be slightly thick.
Fold in the shredded coconut and chocolate chips, if using.
Make sure the chocolate is evenly distributed.
Divide the batter evenly among the muffin cups, filling each about 3/4 full. Smooth the tops lightly with a spoon if needed.
Bake for 18–22 minutes, or until the centers are set and a toothpick comes out with a few moist crumbs but no wet batter.
Cool in the pan for 10 minutes, then transfer to a wire rack to cool completely. This helps them firm up and prevents crumbling.