In a large pan over medium-low heat, add the olive oil and garlic. Cook for 2 minutes, stirring. Add the ground walnuts and thyme to the pan and cook for 1 minute, stirring. Add the beans to the pan, season with salt and pepper, and continue cooking for 5 minutes longer, stirring.