open the wifi settings and to the network you are connected , select it, advanced settings > set the network as metered connection.
this might sometimes be the issue, windows(in background) downloads updates sometimes, which makes the connection slow.