I know that's a darkling beetle they carry salmonella as well as other diseases that affect poultry not to sure about parrots though.Mealworms grow into a beetle
View attachment 344286
Don't give flies a reason to hang out near your bird and you shouldn't have issues.
When it is fly season here, I do get some in the house that the dog will try catching. They never land on my bird cages. They land on my floor and on the walls, but interestingly never on the cages. I think they are just trying to escape the heat.I was wondering about flies cause one landed on the container that the bowl was in