Are you able to use powerline adapters or moca instead of wifi in your apartment?
Is your computer’s IP set statically? Make sure there is a reservation or it is out of the scope of addresses on the DHCP server.
Disable shutting off your wifi adapter to save power in the properties in device manager if you can.
Get a wifi scanning app on your phone and check if there are other people who have networks in the same channels as yours. Try changing the channel to one less saturated if there is a lot of traffic.
Also, considering you are in an apartment, it could literally be interference from someone turning a microwave on or something.
Do you have this issue with other wifi devices?