What I did was change RootComponent = Collider to RootComponent = Sprite and
Sprite->SetupAttachment(RootComponent) to Collider->SetupAttachment(Sprite).
After doing these changes and building the solution UE 4.18.3 crashes.
We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.