Wio E5 Cubemx multiple definitions issue

I am trying to run the FreeRTOS LoRaWan project LoRaWan E5 End Node on my wio E5 board. If I run the project as it is right after opening it for the first time it builds without any errors and the flashed program works properly and connects to my TTN network. When I initialize anything in cubemx and generate the code I get so many build errors because the team which created the code didn’t add user defined code lines inside user code blocks so If I manually resolve them by comparing with the working one then comes the multiple definitions errors mainly due to the conflict of driver files outside and inside the project. Are there any workarounds for this issue? It seems that Cubemx wouldn’t do this with STM32Cube IDE 1.8, so can anyone provide link to that version?