That is rare on Macs and you should take it very seriously, although it is not Audacity that crashes your computer because it does not have kernel privileges to do that.
I would recommend to begin with opening Finder then use the Go > Utilities menu to open Disk Utility. Select your system drive and Verify Disk and then when that’s done, Repair Permissions.