I've encountered this before several times. Now I've hit it again while working on multimedia/ossia-score (not yet committed).
Created attachment 243497 [details] reproducer.shar
Thanks for reporting. Unfortunately, I am overwhelmed with FreeBSD stuff at the moment (status reports and many GCC updates and issues at the same time), but I will look into this as soon as possible.