Can you verify with wireshark that the traffic is only going through your lan? I’m not hip enough for nginx but I used to have to run apache under gdb all the time to trace random errors from the server. That would be next, if the traffic is really local.
G Stylus 5G 2023, Android 14, kernel 5.10.198-android12-9-bunch more numbers. Does that help?