When pasting output from Google AI Studio into Obsidian, words break in half at the end of the line

You can use the Copilot plugin with Google Gemini Pro and copy from the sidebar (you can even use my CSS snippet for Copilot as well).

As for the cleanup, there are plugins and even scripts on the forum. E.g. in this thread I started, someone mentions a Text Format plugin.