Frankly, IMO, headings shouldn’t need to break…
If your heading is that long you’re probably using too many words. :)
From MDN with my emphasis
A heading element briefly describes the topic of the section it introduces.
Alternatively, perhaps you need to think about restructuring one giant heading into a main heading and subheadings.
If you’re really that concerned about it then the option you suggest would be logical but an entirely manual process which is a big downside.