You are giving too much affection and attention to your dogs. Your dogs are interpreting your behaviour as your submission to them. They become aggressive due to possesiveness. Either for you or the territorial area or both. Please do not give any attention or call their names in pain
or try to show that you are worried or scared through your tone. Be rough in your voice
and keep them separate. Scolding beating or pulling back will never help but rather increase their aggression. Make them know that you are the Alfa of the pack and not them. Refer some basic dog training books.