As you said the bump could be due to continuous irritation of lip by teeth or it may be due to retention cyst
due to minor salivary gland
retention. Consult your Pediatrician
for examination and the need for surgical reference for the excision of the leison if it is causing discomfort to the child.