Any form of investment cryptocurrency has its peculiar risk. And lending out you asset isn't void of risk also. However there are quite a never of DeFi platforms out there that offer such services. And it is particularly safer to utilise these platforms for these kind of investments instead of regular escrows. Example of such DeFi platforms are Nexo, Kyber network etc.
However I personally prefer to hold my assets in staking than to lend it out. Often times staking offer a more straight APR than lending. I hope you make a good decision