Avanza supports loaning out stocks depending on the account type, it is only available on Kapitalförsäkring because otherwise the stock is in your name (on Depå / ISK). Also you get paid a premium if they loan your stocks. It is described on https://www.avanza.se/konton-lan-prislista/konton/kapitalfor... and includes a section about the risk.
This depends on your country's tax code, but assume by default not. For example, in France, interest on savings (Livret A) is tax exempt, whereas in Sweden it's not. When living in Sweden, I had to pay taxes on French interest.