Unstable Wi-Fi connection on MacBook Air (Early 2015)
It is most likely your battery pushing on other components in the computer. This can loosen connections or cause the wifi transceiver to be partially blocked or even bent. The first step you should take is getting the battery replaced (because swollen batteries can be unstable sometimes anyways) and see if that fixes the problem. If it doesn't there may be permeant hardware damage.