This issue is resolved in After Effects Beta v23.1.0.40.
There was an issue with a scripting call used by the Motion 4 extension. If Motion 4 was open, this scripting call could cause After Effects to crash when you interacted with the graph editor. The problem with the scripting call has been fixed in build 40 and later.