You don't need to, and should not run "make depend" for OpenSSL 1.1.x.
I'd recommend building an empty sub-directory or "out of tree":

mkdir build; cd build; $path_to_source/Configure ...; make; make test

Why are you building with "enable-crypto-mdebug" and "enable-crypto-mdebug-backtrace"?
These are developer-team options, not expected to used by others, or necessarily work
reliably on all systems... They also incur a substantial performance penalty.

Well I have been building and testing all the beta releases on a mixture
of platforms for a while. All year? A while now and have not seen any
show stoppers anywhere other than a bit of config tweaks and Makefile
edits. I have been running a TLS v1.3 website for months and it never
skips a beat. So this is most likely just a FreeBSD "feature" and a
non-issue. The maintainer(s) in the FreeBSD project are the folks to
speak with here and not the OpenSSL folks. Regardless I will give the
release a whirl on OpenBSD 11.2 and 12.0 and possibly on PPC64 also.
If there is anything to report you will see it in the FreeBSD bugzilla.

Thanks for the hint, I was looking too close at the panic...
This is a Perl issue, with an XSUB routine pushing more
arguments onto the stack than the stack can hold. Sure
does not look like an OpenSSL issue... Perhaps similar to: