Weak Declaration error for flash peripheral in Zephyr 2.7.1

Hello,

I have been in the process of upgrading my nrf52833 project from Zephyr 2.5.0 to Zephyr 2.7.1. So far this has mainly comprised of fixing some KConfig variables, but I am now running into an issue stemming from our mt29f external spi-flash code. It seems that the error is getting thrown at compile time from device.h and has to do with some devicetree declarations, but I am not sure how to go about solving this issue:

In file included from C:\Users\user.platformio\packages\framework-zephyr\include/drivers/spi.h:24,
from lib\v3_drivers\flash\flash.cpp:15:
lib\v3_drivers\flash\flash.cpp: At global scope:
C:\Users\user.platformio\packages\framework-zephyr\include/device.h:760:42: error: weak declaration of ‘__devicehdl_DT_N_S_soc_S_spi_40004000_S_mt29f4g01abafd12_0’ must be public
Z_DEVICE_HANDLE_NAME(node_id, dev_name)[] = {
^

Any help with diagnosing and resolving this error is greatly appreciated! This is not an error I had ever encountered while building with Zephyr 2.5.0, so I am suspecting this has to do with a change to some devicetree code, spi.h, or device.h files going up to 2.7.1.

System Information:
VSCode IDE
PlatformIO v.6.1.5
[env:nrf52833_dk]
platform = nordicnrf52
board = custom nrf52833_dk based board
framework = zephyr 2.7.1 (project built without errors with Zephyr 2.5.0)

Thanks,
Jared