@TheAutisticGamer sounds like poor wifi signal. the pi’s wifi antenna isn’t the greatest. It’s just enough to to work, but Depending how far your Wi-Fi is , how many walls it has to go through, how much other radio signals nearby causing interference, ect ect, can effect signal strength. Try using a 2.4ghz instead of 5ghz as they are more robust, and can travel further though walls, ect. easier.
Also it’s not dhcp failing. Even if your DHCP server failed, your pi would still keep its IP address as well whatever the other device on your network. It’s just any new devices won’t get a new IP address.