To remove the tracealyzer code you also need to remove the calls to trace start, trace stop, save the trace to file etc. too.
Try the code from this git tag GitHub - FreeRTOS/FreeRTOS at 202112.00 or this download https://github.com/FreeRTOS/FreeRTOS/releases/download/202112.00/FreeRTOSv202112.00.zip as a temporary workaround.