This is not a regression tested in //UE5/Release-5.0 CL22491701
Collapsing an Event with 1 connected node and 1 unconnected node to a function results in Both nodes being connected in the function.
Both Print String nodes are present, but only 1 is connected.
Both Print String nodes are present, but both are also connected. This creates an error that prevents compilation until 1 of the nodes is disconnected.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-168421 in the post.