"How can we ensure that savings must be equal to investment?" In the loanable funds market, demand comes from investment and supply comes from savings, so when the market reaches equilibrium, savings = = investment.
"If I save half of my money and invest the other half myself, that part of my investment also belongs to national investment." In macroeconomics, investment is a proper term, which means "the purchase of machinery and related buildings used in production, that is, the production of machinery and buildings is not directly consumed, but used as production factors to expand production." What you mean by "investment" is our usual meaning, for example.
I have written so much, I hope I can help you. Please leave me a message if you have any questions.