V8 error at reached heap limit Allocation failed Javascript heap out of memory

Hello i have my own server on txadmin and when i try to join it says this “V8 error at reached heap limit Allocation failed Javascript heap out of memory” and i dont know what to do. can anyone help me

JavaScript heap out of memory problem is an error that occurs when the default memory allocated by the computer system is insufficient to run a big project. This most likely means your allocated memory to js on the pc is not big enough which you can change with the command in powershell
env:NODE_OPTIONS=“–max-old-space-size=4096”
if this isnt enough then you can up it more but this allocates 4gb rather than 1.5gb, this can also usually occur due to to poor optimization on javascripts such as presence of objects, infinite loopss or recursive functions. Just let note running the npm command will use up 4gb of RAM and isn’t reccomended for servers with low RAM (below 10gb)