A. To prevent double periods, go to Settings > General > Keyboard and toggle off 'Enable Key Repeat'. This can help reduce the chances of accidentally typing two periods in a row.
B. Be mindful of your typing speed and try to slow down slightly when typing to avoid accidental double entries.