The limits in your shell and the limits of a daemon started by systemd are often different, so I check the process itself.
pid=$(pgrep -o nginx)
cat /proc/$pid/limits
The file lists the soft and hard value of every resource limit, such as Max open files and Max processes, for that exact process. This is the number that counts when you see Too many open files. If it is lower than you expected, set LimitNOFILE= in the systemd unit instead of editing a shell profile. pgrep -o picks the oldest matching process, which is normally the master.
Further reading: proc_pid_limits manual page