miniDLNA issue with LG TV

I'm using OpenWrt 19.07.10 on WL-500gpv2, an old router. I have installed Samba and miniDLNA on it to stream video to my LG TV. It just has 30 short video (<1 min).

When I turn on the LG TV, the router will stop response, looks like it is running 100% CPU or drop my ssh connection. When I turn off the TV, it'll come back to normal gradually. Is there any solution to solve it so that my LG TV can access the video on the router through DLNA without bring down my router?

BTW, my router is configured in client device mode, plug in the LAN cable to one of the LAN switch port but I haven't disable the WAN interface yet, wireless is turned off.

Get something with more RAM.

I think it should not be the issue, as it is really very few videos on it. I have even enabled swap and zram. Samba is working.

Samba uses a huge amount of RAM. DLNA almost as much. To run these two services reliably at least 128MB or RAM in my opinion.