Error: frappe.model.utils.link_count.update_link_count exceeded maximum timeout (300 seconds)

update_link_count is a routine database update frappe/link_count.py at develop · frappe/frappe · GitHub

So a timeout may mean your background jobs seem unable to keep up?

Possibly physical resources are not enough for loads?

To diagnose say ERPNext running slow