Welcome to Healthcare Magic
Your baby could be having blockage of the tears drainage
system in the eye which is why tears are overflowing and yellowish material suggests infection like Dactrocystitis. You can try to press gently at the inner region between nose and eye to remove the yellow material which may help in opening the tract. If it does not improve in few weeks, surgery may be needed to open up the blockage.