How to diagnose random connection loss?

Can you still reach the RPi when the connection loss happens, or is all connectivity lost?
Does the local SkyView still work?

You’ll need command line access, do you have that for example via SSH?
(For Beginners - How-to SSH to RPi - Setup Putty in Windows user:pi password:flightaware)

These are the two logs that are most interesting:

journalctl -eu piaware | grep -v 'reported location\|--lat\|feeder ID'
journalctl -eu dump1090-fa

The logs are in RAM by default so a reboot will delete them.
You can make the survive a reboot by editing

sudo nano /etc/systemd/journald.conf

Storage needs the # removed and set to persistent.
You can also limit the maximum amount of space the logs will take up but it’s not that important.

[Journal]
Storage=persistent
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=15m
#RateLimitIntervalSec=30s
#RateLimitBurst=1000
SystemMaxUse=30M

Do a reboot for these log changes to take effect.