We could add a GHA workflow that only runs on changes to /src, and have it test the package using one or more of the R flavors in https://github.com/wch/r-debug. Rsan would have been useful for the most recent issue, but looks like valgrind has been relevant in the past.