I would involve a qualified, experienced behaviourist - not just a trainer - to assess the dog and advise you whether there is any way you can manage this behaviour safely. I assume your dog has already been fully checked by your vet to rule out any physical issues? As you say, the safety of children and other visitors has to be your priority, but a decision may be easier to make with professional advice.