Place the chopped dried chilies in a heatproof bowl and cover with boiling water. Let them soak for 30 minutes to soften, then drain well.
Preheat your oven to 450°F (230°C) and line a baking sheet with parchment paper. Place the cubed tofu on the sheet, drizzle with 2 tablespoons of avocado oil, and season with 1 teaspoon of kosher salt and a pinch of white pepper. Toss to coat well.
Bake the tofu for 25 to 30 minutes until golden brown and crisp around the edges. Set aside.
Heat the remaining 2 tablespoons of avocado oil in a large pot or Dutch oven over medium heat. Add the sliced shallots and cook until soft and translucent, about 5 minutes.
Stir in the garlic, ginger, and lemongrass. Cook for 2 to 3 minutes until fragrant. Add the coconut sugar, turmeric, coriander, cumin, and white pepper, stirring for 30 seconds to lightly toast the spices.
Pour in the soy sauce to deglaze the pan, scraping up any browned bits. Remove the pot from the heat.
Transfer the cooked shallot mixture to a blender. Add the soaked dried chilies, fresh Thai chilies, coconut milk, and the remaining 1 teaspoon of kosher salt. Blend on high until the sauce is completely smooth.
Pour the blended curry sauce back into the pot. Add the sliced carrots and baked tofu. Cover and simmer over medium heat for 15 minutes, or until the carrots are tender.
Turn off the heat. Stir in the Thai basil leaves. Serve warm over jasmine rice, garnished with sliced Fresno peppers.